package com.baomidou.springboot.entity;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 优秀客户
 * </p>
 *
 * @author QQQ
 * @since 2018-06-19
 */
@TableName("client")
public class Client extends Model<Client> implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * ID
     */
    @TableId(value = "ID", type = IdType.UUID)
    private String id;
    /**
     * 菜单
     */
    private String menu;
    /**
     * 标题
     */
    private String title;
    /**
     * 内容
     */
    private String content;
    /**
     * 排序
     */
    private Float sort;
    /**
     * 创建时间
     */
    @TableField("createDate")
    private Date createDate;

    /**
     * 最后更新时间
     */
    @TableField("modifyDate")
    private Date modifyDate;


    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getMenu() {
        return menu;
    }

    public void setMenu(String menu) {
        this.menu = menu;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String filePath) {
        this.title = filePath;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public Float getSort() {
        return sort;
    }

    public void setSort(Float sort) {
        this.sort = sort;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public Date getModifyDate() {
        return modifyDate;
    }

    public void setModifyDate(Date modifyDate) {
        this.modifyDate = modifyDate;
    }

    @Override
    public String toString() {
        return "About{" +
                ", id=" + id +
                ", menu=" + menu +
                ", title=" + title +
                ", content=" + content +
                ", sort=" + sort +
                ", createDate=" + createDate +
                ", modifyDate=" + modifyDate +
                "}";
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }
}
